//14:定义一个数组，将其颠倒（第一个放到最后一个，第二个放到倒数第二个。。。）
//然后输出这个数组。
public class Task2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] arr = new int[5];
        for (int i = 0; i < arr.length; i++) {
            System.out.println("Please input No." + (i + 1));
            arr[i] = in.nextInt();
        }
        System.out.println("finally:");
        for (int i = arr.length - 1; i >= 0; i--) {
            System.out.print(arr[i] + " ");
        }
    }
}